@echo off

set localTestDir=D:\Program Files (x86)\Steam\steamapps\common\觅长生\本地Mod测试\zrgMod\plugins\Next
set nextProjectDir=.\NextProject

set /p opmode=How? ([1]push or [2]pull)
if -%opmode%-==-1- set "src=%nextProjectDir%" & set "dest=%localTestDir%" & call:run
if -%opmode%-==-2- set "src=%localTestDir%" & set "dest=%nextProjectDir%" & call:run
goto :eof


:run
if exist "%dest%" (
    rmdir /s /q "%dest%"
)
xcopy /i /e /y "%src%" "%dest%"
goto :eof
